package logic;
public class StoredMessage {
	private String fileID;
	private int chunkNo;
	private String ip;
	private long date;
	public StoredMessage(){
		fileID=null; 
		chunkNo=-1;
		this.setDate(System.currentTimeMillis());
	}
	public StoredMessage(String fileID,int chunkNo, String ip){
		this.fileID=fileID;
		this.chunkNo=chunkNo;
		this.ip=ip;
		this.setDate(System.currentTimeMillis());
	}
	public int getChunkNo() {
		return chunkNo;
	}
	public void setChunkNo(int chunkNo) {
		this.chunkNo = chunkNo;
	}
	public String getFileID() {
		return fileID;
	}
	public void setFileID(String fileID) {
		this.fileID = fileID;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public long getDate() {
		return date;
	}
	public void setDate(long date) {
		this.date = date;
	}
}
